package org.skyui.views;

import com.vaadin.ui.DateField;

public class LiveDateField extends DateField implements Runnable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -5074924771153556564L;
	Thread updatingThread = new Thread(this);

	public LiveDateField() {
		this.updatingThread.start();
	}

	@Override
	public Object getValue() {
		return super.getValue();
	}

	public void run() {
		while (true) {
			this.getValue();
			try {
				Thread.sleep(1000);
			} catch (InterruptedException e) {
			}

		}
	}

}